const express = require("express")
const app = express()

const token = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJhZG1pbiIsImp0aSI6ImUxOWU1ZWFmMTI4NzNkOTlkMTAyMzRhMWNlODEwYTMwMDE4MmEwNjUiLCJpc3MiOiJKcG9tIiwiaWF0IjoxNzA0ODc2NzgwLCJleHAiOjE3MDQ5NjMxODB9.QqJ24JJ7OQvXiq14KHXjGx4rdiNa5Vb4Hw8JMESkR5c'

app.get('/', (req, res) => {
  res.cookie('longTermToken', 'longTermToken123')
  res.cookie('token', 'token1111')
  res.set('Authorization', token)
  res.redirect(302, `http://192.168.140.78:8080/#/`)
})

app.listen(8088, () => {
  console.log('open server 8088')
})